package com.repu.pubmedspider.Service;

import com.repu.pubmedspider.Dao.UserDao;
import com.repu.pubmedspider.Entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public UserEntity user(){
        UserEntity userEntity = userDao.userAll();

        System.out.print(userEntity);
        return userEntity;

    }

    public UserEntity userLogin(UserEntity user){

        UserEntity userEntity = userDao.userAll();

        System.out.print(userEntity);
        return userEntity;
    }
}
